package com.mby.utils;

import com.mby.entity.RongUser;
import io.rong.messages.BaseMessage;
import io.rong.util.GsonUtil;

/**
 * Created by developer_01 on 2018/5/14.
 */
public class HealthMessage extends BaseMessage {

    private String content = "";
    private String extra = "";
    private RongUser user = new RongUser();
    private static final transient String TYPE = "MBY:HealthMsg";

    public HealthMessage(String content, String extra, RongUser user) {
        this.content = content;
        this.extra = extra;
        this.user = user;
    }

    public RongUser getUser() {
        return user;
    }

    public void setUser(RongUser user) {
        this.user = user;
    }

    public String getType() {
        return "MBY:HealthMsg";
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getExtra() {
        return this.extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String toString() {
        return GsonUtil.toJson(this, HealthMessage.class);
    }
}
